package com.androidsocketd.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.androidsocketd.bean.Classes;
import com.androidsocketd.bean.ProductDetail;

import java.util.List;

/**
 * Created by yao on 2021/3/23.
 * Describe
 */
@Dao
public interface ClassesDao {

    @Query("SELECT * FROM Classes")
    List<Classes> getAllClasses();


    @Query("SELECT * FROM Classes WHERE classId=:classId")
    Classes getAllClassesByName(String classId);

    @Insert
    void insert(List<Classes> classesList);

    @Delete
    void delete(List<Classes> classesList);
}
